bitkeeper revision 1.1159.223.14 (41f288f9VW8XW1rKJWnmSpC3nWXTgA)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Sat, 22 Jan 2005 17:10:17 +0000 (17:10 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Sat, 22 Jan 2005 17:10:17 +0000 (17:10 +0000)
Kconfig cleanup suggested by Tobias Hunger [tobias@aquazul.com]
Signed-off-by: ian.pratt@cl.cam.ac.uk
linux-2.6.10-xen-sparse/arch/xen/Kconfig

index 13b3d1fed62294729610c888738afb55d17f77dd..cfc3ea04c4f92ac2ecbedd1368c6258a43bb7302 100644 (file)
@@ -32,8 +32,7 @@ config XEN_PRIVILEGED_GUEST
 
 config XEN_PHYSDEV_ACCESS
        bool "Physical device access"
-       default y if XEN_PRIVILEGED_GUEST
-       default n if !XEN_PRIVILEGED_GUEST
+       default XEN_PRIVILEGED_GUEST
        help
          Assume access is available to physical hardware devices
           (e.g., hard drives, network cards). This allows you to configure
@@ -42,8 +41,8 @@ config XEN_PHYSDEV_ACCESS
 
 config XEN_BLKDEV_BACKEND
         bool "Block-device backend driver"
-        default y if XEN_PHYSDEV_ACCESS
-        default n if !XEN_PHYSDEV_ACCESS
+      depends on XEN_PHYSDEV_ACCESS
+        default y
         help
           The block-device backend driver allows the kernel to export its
           block devices to other guests via a high-performance shared-memory
@@ -51,8 +50,8 @@ config XEN_BLKDEV_BACKEND
 
 config XEN_NETDEV_BACKEND
         bool "Network-device backend driver"
-        default y if XEN_PHYSDEV_ACCESS
-        default n if !XEN_PHYSDEV_ACCESS
+      depends on XEN_PHYSDEV_ACCESS
+        default y
         help
           The network-device backend driver allows the kernel to export its
           network devices to other guests via a high-performance shared-memory
@@ -76,9 +75,9 @@ config XEN_NETDEV_FRONTEND
           dedicated device-driver domain, or your master control domain
           (domain 0), then you almost certainly want to say Y here.
 
-if XEN_NETDEV_FRONTEND
 config XEN_NETDEV_FRONTEND_PIPELINED_TRANSMITTER
         bool "Pipelined transmitter (DANGEROUS)"
+       depends on XEN_NETDEV_FRONTEND
         default n
         help
           The driver will assume that the backend is pipelining packets for
@@ -92,7 +91,6 @@ config XEN_NETDEV_FRONTEND_PIPELINED_TRANSMITTER
           like reassembling packets to perform firewall filtering; or if you
           are unsure; or if you experience network hangs when this option is
           enabled; then you must say N here.
-endif
 
 config XEN_WRITABLE_PAGETABLES
        bool
@@ -109,40 +107,28 @@ config XEN_SCRUB_PAGES
           If security is not a concern then you may increase performance by
           saying N.
 
-endmenu
-
-config HAVE_ARCH_DEV_ALLOC_SKB
-       bool
-       default y
-
-#config VT
-#      bool
-#      default y
-
-#config VT_CONSOLE
-#      bool
-#      default y
-
-#config HW_CONSOLE
-#      bool
-#      default y
-
 choice
-       prompt "Processor Type"
-       default X86
+        prompt "Processor Type"
+        default X86
 
 config X86
-       bool "X86"
-       help
-         Choose this option if your computer is a X86 architecture.
+        bool "X86"
+        help
+          Choose this option if your computer is a X86 architecture.
 
 config X86_64
-       bool "X86_64"
-       help
-         Choose this option if your computer is a X86 architecture.
+        bool "X86_64"
+        help
+          Choose this option if your computer is a X86 architecture.
 
 endchoice
 
+endmenu
+
+config HAVE_ARCH_DEV_ALLOC_SKB
+       bool
+       default y
+
 source "init/Kconfig"
 
 if X86